package cn.tedu.shopol.taojin.service.impl;

import cn.tedu.shopol.taojin.dto.FindOrderDTO;
import cn.tedu.shopol.taojin.model.OrderTwo;
import cn.tedu.shopol.taojin.mapper.OrderTwoMapper;
import cn.tedu.shopol.taojin.service.IOrderTwoService;
import cn.tedu.shopol.taojin.vo.FindOrderByIdVO;
import cn.tedu.shopol.taojin.vo.OrderTwoVO;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * <p>
 *  服务实现类
 * </p>
 *
 * @author tedu.cn
 * @since 2020-12-08
 */
@Service
public class OrderTwoServiceImpl extends ServiceImpl<OrderTwoMapper, OrderTwo> implements IOrderTwoService {

    @Autowired
    OrderTwoMapper mapper;

    @Override
    public List<OrderTwoVO> findOrderTwo() {
        return mapper.findOrderTwo();
    }

    @Override
    public List<FindOrderByIdVO> findOrderTwoById(FindOrderDTO findOrderDTO) {
        return mapper.findOrderTwoById(findOrderDTO);
    }


}
